/*
 * Copyright � 2008 Nokia Corporation.
 */

#ifndef __SUDOKUGAMEOVERDIALOG_H__
#define __SUDOKUGAMEOVERDIALOG_H__

// INCLUDES
#include <aknquerydialog.h>

class CSudokuAppUi;

// CLASS DECLARATION
class CSudokuGameOverDialog : public CAknQueryDialog
    {
    public: // Constructors and destructor
        CSudokuGameOverDialog();
        
        virtual ~CSudokuGameOverDialog();

        void PreLayoutDynInitL();

        void PostLayoutDynInitL();

        TBool OkToExitL(TInt aButtonId);

    public:
        void SizeChanged();
        void CalculatePositionAndSize();
        void HandleResourceChange(TInt aType);
        
    private: // from base classes
        TInt CountComponentControls() const;
        CCoeControl* ComponentControl(TInt aIndex) const;
        void Draw( const TRect& /*aRect*/ ) const;
        void SetSizeAndPosition(const TSize &aSize);

    private: // internal methods
       static TInt HideDialog(TAny* aAny);
       
    private: // data
        CPeriodic*          iPeriodic;
        CSudokuAppUi*       iAppUi;
        
        TPoint              iLine1;
        TPoint              iLine2;

    };

#endif //__SUDOKUGAMEOVERDIALOG_H__

